<include file="Public:header" />
<include file="Public:menu" menu_index="curr" />
<div id="main">
    <h4>管理员操作记录</h4>
    <hr class="dash">
    <switch name="select">
        <case value="showAction">
            <p>管理员:{{$action.name}}</p>
            <table>
                <tr>
                    <th>操作时间</th>
                    <th>操作内容</th>
                </tr>
                <volist name="action" id="vo">
                    <tr>
                        <td></td>
                        <td></td>
                    </tr>
                </volist>
            </table>
        </case>
    <default />
    <empty name="action">
        <p class="nodata">暂无操作日志</p> 
        <else/>
        <table class="table">
            <tr>
                <th width="20%">登录时间</th>
                <th width="20%">注销时间</th>
                <th width="15%">管理员</th>
                <th width="15%">级别</th>
            </tr>
            <volist name="action" id="vo">
                <tr>
                    <td>{{$vo.login_time|date="Y-n-j H:i:s",###}}</td>
                    <td><if condition="$vo.logout_time eq '0'">在线<else />{{$vo.logout_time|date="Y-n-j H:i:s",###}}</if></td>
                    <td><a href="__URL__/showAction/action_id/{{$vo.action_id}}">{{$vo.name}}</a></td>
                    <td>{{$vo.level}}</td>
                </tr>
            </volist>
        </table>
    </empty>  
    
    </switch>
</div>
<include file="Public:footer" />